package com.supermap.dataservice.deviceinfo.dao;

import com.supermap.dubbo.api.deviceinfo.entity.Deviceinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author:langhongshuai
 * @Description:站点设备数据访问层
 * @Date:18/5/14 下午4:22
 */
@Mapper
public interface DeviceinfoDao {

    @Select("Select * from deviceInfo")
    List<Deviceinfo> getAllDeviceInfo();


    @Select("select * from deviceInfo where UserId=#{parkId}")
    List<Deviceinfo> getDeviceInfosByParkId(@Param("parkId") int parkId);

}
